package com.example.module_main.ui.splash

import com.example.module_main.MainApi
import com.example.module_main.MainModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

class SplashRepository @Inject constructor() {
    @Inject
    @MainModel.CommonApi
    lateinit var mainApi: MainApi
    fun adList() = flow {
        emit(mainApi.adList())
    }.flowOn(Dispatchers.IO)
}